import request from "./request";

//账户注册
export const sign = (data) => {
    return request({
        method: 'POST',
        url: '/user',
        data
    })
}
export const login = (params) => {
    return request({
        method: 'get',
        url: '/user',
        params
    })
}
export const getCurrentUser = () => {
    return request({
        method: 'get',
        url: '/user'
    })
}
